package com.bincloud.vue.admin.common.model.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * 基类分页请求入参
 * @author bincloud, mvpzhou
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "基类分页请求入参")
public class BasePageReqDTO extends BaseReqDTO{
    /**
     * 页码
     */
    @ApiModelProperty(value = "页码")
    @Min(value = 1L, message = "页码最小为 1")
    private Long pageNo = 1L;
    /**
     * 分页
     */
    @ApiModelProperty(value = "分页")
    @Min(value = 1L, message = "分页最小为 1")
    @Max(value = 500L, message = "分页最大为 500")
    private Long pageSize = 10L;
}
